package com.ssa.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Arrays;

/**
 * ytx SsaServerApplication
 *
 * @author <a href="mailto:chenlsh@ytx.com">陈录顺</a>
 * @since 2.5.12
 */
//@EntityScan(basePackages = "com.ssa.server.entity")
@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.ssa.server.domain.Infrastructure")
@EnableTransactionManagement(proxyTargetClass = true)
public class SsaServerApplication {

    public static void main(String[] args) {
//        System.out.println("Entering spring boot");
//        ApplicationContext ctx = SpringApplication.run(SsaServerApplication.class, args);
//
//        System.out.println("Let's inspect the beans provided by Spring Boot:");
//        String[] beanNames = ctx.getBeanDefinitionNames();
//        Arrays.sort(beanNames);
//        for (String beanName : beanNames) {
//            System.out.print(beanName);
//            System.out.print(" ");
//        }
//
//        System.out.println("");
        SpringApplication.run(SsaServerApplication.class);

    }
}
